import java.util.Scanner;

public class Main1688 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        double a=sc.nextDouble();
        if (a>=92.8){
            System.out.println("jin");
        }else if (a<92.8&&a>=85.6){
            System.out.println("yin");
        }else if (a<85.6&&a>=82.1){
            System.out.println("tong");
        }else if (a<82.1){
            System.out.println("sorry");
        }
    }
}
